import request from '@/utils/request'

export function getAdvertList (data) {
  return request({
    url: '/api/setting/advert/index',
    method: 'post',
    data
  })
}

export function saveAdvert (data) {
  return request({
    url: '/api/setting/advert/save',
    headers: {
      'Content-Type': 'multipart/form-data'
    },
    method: 'post',
    data
  })
}

export function deleteAdvert (data) {
  return request({
    url: '/api/setting/advert/delete',
    method: 'post',
    data
  })
}
